import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import myfooter from "./components/footer.vue";

Vue.config.productionTip = false;
// response.setHeader(
//   (name: "Set-Cookie"),
//   (value: "_u=xxxx; Path=/Login; SameSite=None; Secure=true")
// );

Vue.component("myfooter", myfooter);

import axios from "axios";
axios.defaults.baseURL = "http://localhost:3000/";
axios.defaults.withCredentials = true; //让axios携带
Vue.prototype.axios = axios;
import Vant from "vant";
import "vant/lib/index.css";
Vue.use(Vant);

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
